<?php

namespace App\Supports\Payment\Methods\Sandwap;

use Exception;
use Carbon\Carbon;
use Brick\Math\RoundingMode;
use Illuminate\Support\Facades\Log;
use App\Supports\Payment\Methods\Method;
use App\Supports\Payment\Contracts\MethodValidate;

class ValidateIdNo extends Method implements MethodValidate
{
	public function validate($certification = null, $data = null) 
	{
		$info = $this->info($certification);
		$result = $this->channel->verify($info);
		dd(123);

	}
	
	public function info($certification = null, $data = null)
	{
		
		return [
			'orderCode' => 'certification_'.time().rand(1000,9999),
            'version' => '01',
            'productId' => '00000003',
            'tranTime' => date('YmdHis', time()),
            'name' => $certification['real_name'],
            'certType' => '0001',
            'certNo' => $certification['id_no'],
            'returnPic' => '1',
		];
	}
	
	
}
